package com.code.day08.MethodYY;

import java.util.function.Supplier;

public class Demo1 {
    public static void main(String[] args) {
        demo1("abc"::toUpperCase);
    }
    public static void demo1(Supplier<String> supplier) {
        String s =  supplier.get();
        System.out.println(s);
    }
}
